home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-09-22 | 1.3 KB | 52 lines |
- # Makefile.ofiles
- #
- # by Mike Ferris
- # Part of MOKit
- # Copyright 1993, all rights reserved
- #
- # Used in the MiscKit by permission.
- #
- # This is based on Next's standard library make architecture
-
- ##################### Rules to build objects files #####################
-
- ofiles:: $(OFILE_DIR) $(SYM_DIR) $(DERIVED_SRC) $(OFILES)
-
- optimized_ofiles::
- @$(ECHO) '************* $(NAME) Optimized ofiles ************'
- @$(MAKE) ofiles \
- "PRODUCT = $(OPT_LIB)" \
- "OFILE_DIR = $(OBJROOT)/$(OPT_OBJ)" \
- "SYM_DIR = $(SYMROOT)/sym" \
- "OBJROOT = $(OBJROOT)" \
- "SYMROOT = $(SYMROOT)" \
- "CFLAGS = $(OPTCFLAGS)"
-
- debug_ofiles::
- @$(ECHO) '************* $(NAME) Debug ofiles ************'
- @$(MAKE) ofiles \
- "PRODUCT = $(DEBUG_LIB)" \
- "OFILE_DIR = $(OBJROOT)/$(DEBUG_OBJ)" \
- "SYM_DIR = $(SYMROOT)/sym" \
- "OBJROOT = $(OBJROOT)" \
- "SYMROOT = $(SYMROOT)" \
- "CFLAGS = $(DEBUGCFLAGS)"
-
- profile_ofiles::
- @$(ECHO) '************* $(NAME) Profile ofiles ************'
- @$(MAKE) ofiles \
- "PRODUCT = $(PROFILE_LIB)" \
- "OFILE_DIR = $(OBJROOT)/$(PROFILE_OBJ)" \
- "SYM_DIR = $(SYMROOT)/sym" \
- "OBJROOT = $(OBJROOT)" \
- "SYMROOT = $(SYMROOT)" \
- "CFLAGS = $(PROFCFLAGS)"
-
- # making the ofile and sym directories
- $(OFILE_DIR) $(SYM_DIR):
- @if [ ! -d $@ ] ; then \
- $(ECHO) $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
- $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
- fi
-
-